package com.wwt.server.vo.params;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@Accessors(chain = true) //setter返回当前对象
@ApiModel(value = "登录参数",description = "Admin请求参数")
public class AdminLoginParams {
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    //从前端传过来kaptcha  返回也是kaptcha
    @JsonProperty(value = "kaptcha")
    @ApiModelProperty(value = "验证码",required = true)
    private String code;
}
